#include "NamedPipe.hpp"

int main()
{
    NamePipe name_pipe;
    name_pipe.Creat();
    name_pipe.OpenForRead();

    while (1)
    {
       int n = name_pipe.Read();
       if(n == 0)
            break;
    }

    name_pipe.Close();
    name_pipe.Remove();
    return 0;
}